<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
   <head>
       <%@include file="../common/head.jsp" %>
   </head>
  <body class="layui-container">
	<form id="menu_form" class="layui-form" action="${ctx}/weixinMenu/update/${menu.id}" method="post">
	
	<div class="layui-form-item">
			<label class="layui-form-label">id</label>
			<div class="layui-input-block">
				<input type="text" name="id" required lay-verify="required"
					placeholder="" autocomplete="off" class="layui-input" value="${menu.id}">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">名称</label>
			<div class="layui-input-block">
				<input type="text" name="name" required lay-verify="required" value="${menu.name}"
					placeholder="请输入标题" autocomplete="off" class="layui-input">
			</div>
		</div>
		
		<div class="layui-form-item">
			<label class="layui-form-label">menukey</label>
			<div class="layui-input-block">
				<input type="text" name="menukey"  value="${menu.menukey}"
					placeholder="请输入标题" autocomplete="off" class="layui-input">
			</div>
		</div>
		
		<div class="layui-form-item">
			<label class="layui-form-label">url</label>
			<div class="layui-input-inline">
				<input type="text" name="url"  placeholder="请输入密码"  value="${menu.url}"  class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">辅助文字</div>
		</div>
		
		<div class="layui-form-item">
			<label class="layui-form-label">type</label>
			<div class="layui-input-inline">
				<input type="text" name="type"  placeholder="请输入密码"  value="${menu.type}" 	class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">辅助文字</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">响应类型</label>
			<div class="layui-input-inline">
				<input type="text" name="respontype"  placeholder="请输入密码"  value="${menu.respontype}"
					class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">辅助文字</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">pid</label>
			<div class="layui-input-inline">
				<input type="text" name="pid"  placeholder="请输入密码"  value="${menu.pid}"
					class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">辅助文字</div>
		</div>

		<div class="layui-form-item layui-form-text">
			<label class="layui-form-label">content</label>
			<div class="layui-input-block">
				<textarea name="content" placeholder="请输入内容" class="layui-textarea" value="${menu.content}"></textarea>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
				<a href="javascript:void(0);" class="layui-btn" onclick="javascript :history.back(-1);">返回</a>
			</div>
		</div>
	</form>

	<script type="text/javascript">
	layui.use(['jquery','layer', 'form','table','laytpl','upload'], function(exports){
		  var $ = layui.$ ,
		  layer = layui.layer,
		  form = layui.form,
		  table = layui.table,
		  laytpl = layui.laytpl,
		  upload = layui.upload;
	  
	  //监听提交
	  form.on('submit(formDemo)', function(data){
	       layer.msg(JSON.stringify(data.field));
	        $("#menu_form").submit();
	    return false;
	  });
	});
</script>
</body>
</html>
